﻿CREATE TABLE [dbo].[Relation] (
    [RelationID] INT           IDENTITY (1, 1) NOT NULL,
    [FK_TableID] INT           NULL,
    [FK_Column]  VARCHAR (4000) NULL,
    [PK_TableID] INT           NULL,
    [PK_Column]  VARCHAR (4000) NULL,
    CONSTRAINT [PK_Relation] PRIMARY KEY CLUSTERED ([RelationID] ASC),
    CONSTRAINT [FK_Relation_Table] FOREIGN KEY ([PK_TableID]) REFERENCES [dbo].[Table] ([TableID]),
    CONSTRAINT [FK_Relation_Table1] FOREIGN KEY ([FK_TableID]) REFERENCES [dbo].[Table] ([TableID])
);



